-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add paddle.gcd & lcm docs #4130
Conversation
luotao1
commented
Dec 3, 2021
•
edited
Loading
edited
- gcd
- lcm
- deg2rad
- rad2deg
✅ This PR's description meets the template requirements! |
Thanks for your contribution! |
docs/api/paddle/gcd_cn.rst
Outdated
参数 | ||
::::::::: | ||
|
||
- **x, y** (Tensor) - 输入的Tensor,数据类型为:int8,int16,int32,int64,uint8。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里同英文的格式
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/api/paddle/gcd_cn.rst
Outdated
.. code-block:: python | ||
|
||
import paddle | ||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
示例代码同英文,建议使用 COPY:FROM 方便保持一致性~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/api/paddle/lcm_cn.rst
Outdated
|
||
.. py:function:: paddle.lcm(x, y, name=None) | ||
|
||
计算两个输入的按元素绝对值的最大公约数,输入必须是整型。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最大公约数 -> 最小公倍数
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/api/paddle/lcm_cn.rst
Outdated
参数 | ||
::::::::: | ||
|
||
- **x, y** (Tensor) - 输入的Tensor,数据类型为:int8,int16,int32,int64,uint8。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
格式同
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/api/paddle/lcm_cn.rst
Outdated
代码示例 | ||
::::::::: | ||
|
||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
示例代码同
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7eaa22a
to
09f0c27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM